﻿import { ref, h, createApp } from 'vue';
import { ElDialog } from 'element-plus';
export const showDialog = (compoent, props, modalProps) => {
    // const open = ref(false);
    const dialog = h(
        ElDialog,
        {
            ...modalProps,
            modelValue:true
            // open: open.value,
        },
        { default: () => h(compoent, props) }
    );

    const app = createApp(dialog);
    const div = document.createElement('div');
    document.body.appendChild(div);
    app.mount(div);
};
